//混合器
@import "compass";
@import "color";
@import "style";
@import "width";
//表格背景
@mixin lanui-table-evenodd($type) {
    @if $type==odd {
        tbody tr:nth-child(odd) {
            background: $tabletr;
            background: var(--tabletrselect);
        }
    }
    @else {
        tbody tr:nth-child(even) {
            background: $tabletr;
            background: var(--tabletrselect);
        }
    }
}

//表格线条类型
@mixin lanui-table-style($borderStyle) {
    border-style: $borderStyle;
    th,
    td {
        border-style: $borderStyle;
    }
}

//表格线条方向
@mixin lanui-table-direction($direction) {
    @if $direction==left {
        border-left: $borderHeight $borderStyle $borderColor;
        border: 0 $borderStyle $borderColor;
        th,
        td {
            border: 0 $borderStyle $borderColor;
            border-left: $borderHeight $borderStyle $borderColor;
        }
    }
    @else if $direction==right {
        border: 0 $borderStyle $borderColor;
        border-right: $borderHeight $borderStyle $borderColor;
        th,
        td {
            border: 0 $borderStyle $borderColor;
            border-left: $borderHeight $borderStyle $borderColor;
        }
    }
    @else if $direction==top {
        border: 0 $borderStyle $borderColor;
        border-top: $borderHeight $borderStyle $borderColor;
        th,
        td {
            border: 0 $borderStyle $borderColor;
            border-top: $borderHeight $borderStyle $borderColor;
        }
    }
    @else {
        border: 0 $borderStyle $borderColor;
        border-bottom: $borderHeight $borderStyle $borderColor;
        th,
        td {
            border: 0 $borderStyle $borderColor;
            border-bottom: $borderHeight $borderStyle $borderColor;
        }
    }
}

//日历箭头样式
@mixin datejiantou {
    position: absolute;
    top: $height*-2; //ie
    top: calc(var(--height)*-2);
    display: inline-block;
    width: $width*4;
    height: $width*4;
    border: 0 $borderStyle;
    border-width: $borderHeight 0 0 $borderHeight;
    width: calc(var(--width)*4);
    height: calc(var(--width)*4);
    border: 0 var(--borderStyle);
    border-width: var(--borderHeight) 0 0 var(--borderHeight);
    content: "";
    color: $disableColor; //ie
    color: var(--disableColor);
}